﻿@model PagedList<OnlineMealOrdering.Models.StoreOnlineModel>
@{
    ViewBag.Title = "U虎外卖网";
}

<div class="filter_center">
    <div class="sortleftcenter">
        <div class="sort">
            <div class="sortt">
                <div class="popular">
                    <span>热&nbsp;&nbsp;门：</span>
                    <a class="red" href="#" target="_blank">新单</a>
                    <a href="#" rel="nofollow">电影</a>
                    <a href="#" rel="nofollow">自助餐</a>
                    <a href="#" rel="nofollow">KTV</a>
                </div>
            </div>
            <div class="sortcon">
                <div class="sortcon-link">
                    <span class="title">分&nbsp;&nbsp;类：</span>
                    <a href="#" class="current">全部</a>
                    @foreach (var item in ViewBag.Catelog)
                    {
                        <a href="#">@item.Name<span>&nbsp;1340</span></a>
                    }
                    @*<a href="#">美食<span>&nbsp;1340</span></a>
                    <a href="#">美食<span>&nbsp;1340</span></a>
                    <a href="#">美食<span>&nbsp;1340</span></a>
                    <a href="#">美食<span>&nbsp;1340</span></a>
                    <a href="#">美食<span>&nbsp;1340</span></a>*@
                    <div class="clr"></div>
                </div>
                <div class="sortcon-link">
                    <span class="title">价&nbsp;&nbsp;格：</span>
                    <a href="#" class="current">不限</a>
                    <a href="#">10元以下</a>
                    <a href="#">10-20元</a>
                    <a href="#">20-30元</a>
                    <div class="clr"></div>
                </div>
                <div class="sortcon-link">
                    <span class="title">区&nbsp;&nbsp;域：</span>
                    <a href="#" class="current">全部</a>
                    <a href="#">虎门广场</a>
                    <a href="#">虎门广场</a>
                    <a href="#">虎门广场</a>
                    <a href="#">虎门广场</a>
                    <a href="#">美食<span>&nbsp;1340</span></a>
                    <div class="clr"></div>
                </div>

                <!--<div class="sortcon-link" style="z-index: 1;">
                            <span class="title">区&nbsp;&nbsp;域：</span>
                            <a href="#" class="current">全部</a>
                            <a href="#">服饰鞋包<span>&nbsp;1435</span></a>
                            <a href="#">服饰鞋包<span>&nbsp;1435</span></a>
                            <a href="#">服饰鞋包<span>&nbsp;1435</span></a>
                            <a href="#">服饰鞋包<span>&nbsp;1435</span></a>
                            <a href="#">服饰鞋包<span>&nbsp;1435</span></a>
                            <div class="clr"></div>
                        </div>-->
            </div>
            <div class="sequence">
                <span class="title">排&nbsp;&nbsp;序：</span>
                <a href="javascript:void(0)" onclick="" title="默认排序" class="current">默认</a>
                <a href="javascript:void(0)" onclick="" title="按发布时间排序"><span>最新</span><span class="down"></span></a>
                <a href="javascript:void(0)" onclick="" title="销量从高到低"><span>销量</span><span class="down"></span></a>
                <a href="javascript:void(0)" onclick="" title="价格从低到高"><span>价格</span><span class="up"></span></a>
                <a href="javascript:void(0)" onclick="" title="价格从高到低"><span>价格</span><span class="down"></span></a>
            </div>
        </div>
    </div>
    <div class="webnote">
        <div class="webnote_title">网站公告</div>
        <ul class="sidebar-hdcen">
            <li><s></s><a target="_blank" href="#">1品牌特卖全球首发 低至1折起</a></li>
            <li><s></s><a target="_blank" href="#">2品牌特卖全球首发 低至1折起</a></li>
            <li><s></s><a target="_blank" href="#">3品牌特卖全球首发 低至1折起</a></li>
            <li><s></s><a target="_blank" href="#">4品牌特卖全球首发 低至1折起</a></li>
        </ul>
    </div>
    <div class="clr"></div>
</div>


<div class="content-list">
    <div class="onlinestore">
        <div class="storeleft">
            <!---------店铺列表------------>

            @foreach (OnlineMealOrdering.Models.StoreOnlineModel item in Model)
            {
                <div class="store">
                    <div class="storeimg">
                        <a href="/OnlineStore/@item.Id">
                            <img width="240" height="140" src="@item.Image" alt="@item.Name" />
                        </a>
                    </div>
                    <div class="storeinfo">
                        <dl>
                            <dt>名称：</dt>
                            <dd>
                                <span class="store_name">&nbsp;&nbsp;&nbsp;&nbsp;<b><a href="/OnlineStore/@item.Id">@item.Name</a></b></span>
                                <span>
                                    @foreach (var mark in item.Marks)
                                    {
                                        <img src="@mark.Image" alt="@mark.Image" />
                                    }
                                </span>

                            </dd>

                        </dl>
                        <dl>
                            <dt>配送时间：</dt>
                            <dd><span>@item.BeginBusinessTime.ToString("HH:mm") - @item.EndBusinessTime.ToString("HH:mm")</span>&nbsp;&nbsp;<span>电话：<b>@item.Tel</b></span></dd>
                        </dl>
                        <dl>
                            <dt>起送价格：</dt>
                            <dd><span>配送范围内 ¥<b>@Math.Round(item.InitiatePrice,0)&nbsp;</b>元起</span><span class="storeinfo_help">配送范围</span></dd>
                        </dl>
                        <dl>
                            <dt>地址：</dt>
                            <dd><span><b>@item.Address</b></span></dd>
                        </dl>

                        <dl>
                            <dt>公告：</dt>
                            <dd>&nbsp;&nbsp;<span>@item.Note</span></dd>
                        </dl>
                    </div>
                    <div class="store_tip">
                    </div>
                </div>
            }

            <div class="store">
                <div class="storeimg">
                    <a href="#">
                        <img width="240" height="140" src="/Content/image/201302192037204110.jpg" alt="" /></a>
                </div>
                <div class="storeinfo">
                    <dl>
                        <dt>名称：</dt>
                        <dd><span class="store_name">&nbsp;&nbsp;&nbsp;&nbsp;<b>东北菜馆</b></span></dd>
                    </dl>
                    <dl>
                        <dt>配送时间：</dt>
                        <dd><span>08:00 - 22:00</span>&nbsp;&nbsp;<span>电话：<b>13510426755</b></span></dd>
                    </dl>
                    <dl>
                        <dt>起送价格：</dt>
                        <dd><span>配送范围内 ¥<b>10</b>元起</span><span class="storeinfo_help">配送范围</span></dd>
                    </dl>
                    <dl>
                        <dt>地址：</dt>
                        <dd><span><b>深圳市,龙华镇大浪商业光，5号铺面。</b></span></dd>
                    </dl>

                    <dl>
                        <dt>公告：</dt>
                        <dd>&nbsp;&nbsp;<span>07.15号至08.10号，光临本店即送代金券.....</span></dd>
                    </dl>
                </div>
                <div class="store_tip">
                </div>
            </div>


            <!---------店铺列表 结束------------>
        </div>
        <div class="storeright">
        </div>

        <div class="clr"></div>
    </div>
    <div class="clr"></div>
    <div class="page">
        @*@Html.Pager(Model, new PagerOptions {CssClass="mvcPager",PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, ShowPageIndexBox = true,ShowGoButton=false,PageIndexBoxWrapperFormatString="页{0}"})*@
        @Ajax.Pager(Model, new PagerOptions() { PageIndexParameterName = "pagindex",ShowPageIndexBox=true,PageIndexBoxType=PageIndexBoxType.DropDownList,ShowGoButton=false,PageIndexBoxWrapperFormatString="跳转到第{0}页"}, 
new AjaxOptions() { UpdateTargetId = "storeleft" })
       @* <a class="pageup pageup-dis" href="javascript:void(0)" title="上一页"><em></em>上一页</a>
        <a class="current" href="javascript:void(0)">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a>
        <span>...</span>
        <a class="pagedown" href="#">116</a> <a class="pagedown" href="#" title="下一页">下一页<em></em></a>*@
    </div>
</div>

<div class="clr"></div>
